home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: `override' keyword; was Re: CW9, RTTI, and ODF
- Sent: 8/12/96 2:26 PM
- Received: 8/12/96 5:44 PM
- From: Scott Collins, collins@acm.org
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- There's no `override' keyword because that would imply that derived classes
- may override _any_ visible method of the base class, e.g., as in Object
- Pascal. In C++, the class designer decides which methods may be replaced
- in sub-classes, i.e., only those marked `virtual'. It would be easier to
- get your compiler vendor to provide smarter error messages than to get the
- C++ committee to OK (what they would consider) an unnecessary new keyword.
-
-
- ............................................................
- Scott Collins collins@ACM.ORG
-
-
-